/**
 * 项目示例-列表表头
 * Date 2023-5-25 09:33:56
 * 可选参数可参考：https://element-plus.org/zh-CN/component/table.html#table-column-属性
 */
interface ExampleListItem {
  houseName: string;
  houseType: string;
  houseCode: string;
  num: string;
  area: string;
  price: string;
  rent: string;
  region: string;
  organNames: string;
  condition: string;
  nature: string;
  ability: string;
  maintainLimit: string;
  dutyOrganName: string;
  linkUserName: string;
  linkPhone: string;
  floor: string;
  coordinate: string;

  id: string;
  unitName: string;
  total: string;
  violation: string;
  currentScore: string;
  lastUpdateTime: string;

  earlyName: string;
  earlyId: string;
  earlyLevel: string;
  codePoint: string;
  deductNumber: string;
}

export const mapListColumns = [
  {
    prop: 'tshaNumber', label: '考核单位编号', width: 250, align: 'center', ellipsis: true
  },
  {
    prop: 'tshaName', label: '考核单位名称', width: 250, align: 'center', ellipsis: true
  },
  {
    prop: 'tshaScore', label: '总分数', width: 200, align: 'center', ellipsis: true
  },
  {
    prop: 'tshaVio', label: '违规次数', width: 200, align: 'center', ellipsis: true
  },
  {
    prop: 'tshaExi',
    label: '现有分数',
    sortable: true,
    width: 210,
    align: 'center',
    ellipsis: true
  },
  {
    prop: 'tshaStat',
    label: '更新时间',
    sortable: true,
    width: 210,
    align: 'center',
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue
      } else {
        return '-'
      }
    }
  },
  {
    prop: 'action', label: '操作', fixed: 'right', width: 210, align: 'center'
  }
]

export const earlyColumns = [
  { type: 'index', label: '序号', width: 60, align: 'center' },
  {
    prop: 'tshlId', label: '隐患编号', width: 150, align: 'center', ellipsis: true
  },
  {
    prop: 'tshlName', label: '隐患名称', width: 120, align: 'center', ellipsis: true
  },
  {
    prop: 'tshlClassify', label: '隐患分类', width: 120, align: 'center', ellipsis: true
  },
  {
    prop: 'tshlGrade', label: '隐患等级', width: 120, align: 'center', ellipsis: true
  },
  {
    prop: 'assessmentRiteria', label: '评分规则', width: 120, align: 'center', ellipsis: true
  },
  {
    prop: 'assessmentCode', label: '扣分数值', width: 120, align: 'center', ellipsis: true
  },
]


